package com.example.teachingSystem.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.teachingSystem.pojo.entity.CourseSchedule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.teachingSystem.pojo.form.Schedule.SchedulePageQuery;
import com.example.teachingSystem.pojo.vo.ScheduleVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 86147
* @description 针对表【course_schedule(课程安排表)】的数据库操作Mapper
* @createDate 2023-12-11 22:55:52
* @Entity com.example.teachingSystem.pojo.entity.CourseSchedule
*/
@Mapper
public interface CourseScheduleMapper extends BaseMapper<CourseSchedule> {

    List<ScheduleVo> getMyCourseScheduleByStu(Long semesterId,Long stuId);

    List<ScheduleVo> getMyCourseScheduleByTea(Long semesterId,Long teaId);

    IPage<ScheduleVo> getAllCoursePage(Page<CourseSchedule> page,SchedulePageQuery queryParams);
}




